package com.hjq.demo.yuliao.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.hjq.demo.R
import com.hjq.demo.app.vb.AppVbActivity
import com.hjq.demo.databinding.ActivityGiftSenderBinding
import com.hjq.demo.utils.CommonSpaceItemDecoration
import com.hjq.demo.yuliao.adapter.GiftSenderDetailAdapter

class GiftSenderDetailActivity : AppVbActivity<ActivityGiftSenderBinding>() {

    private var mAdapter: GiftSenderDetailAdapter? = null

    override fun initView() {

        binding.recyclerGift.layoutManager = LinearLayoutManager(this, RecyclerView.HORIZONTAL, false)
        binding.recyclerGift.addItemDecoration(
            CommonSpaceItemDecoration(
                resources.getDimension(R.dimen.dp_10).toInt(),
                false, CommonSpaceItemDecoration.LINEARLAYOUT, true
            )
        )
        mAdapter = GiftSenderDetailAdapter()
        binding.recyclerGift.adapter = mAdapter

    }

    override fun initData() {

    }

}